package com.zengqingfa.examples.mybatisplus.excel.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
@HeadRowHeight(value = 30)
@ContentRowHeight(value = 25)
public class MergeCellUserDTO {

    @ExcelProperty(value = "用户编号", index = 0)
    @ColumnWidth(value = 30)
    private String userId;
    @ExcelProperty(value = "姓名", index = 1)
    @ColumnWidth(value = 30)
    private String username;
    @ExcelProperty(value = "性别", index = 2)
    @ColumnWidth(value = 30)
    private String gender;
    @ExcelProperty(value = "工资", index = 3)
    @ColumnWidth(value = 30)
    private Double salary;
    @ExcelProperty(value = "入职时间", index = 4)
    @ColumnWidth(value = 30)
    private Date hireDate;
}
